class A_LIST{ETP} < $LIST{ETP}
****
A safe wrapper for FLIST{ETP}


Ancestors
$LIST{_} $STR $ARR{_} $RO_ARR{_}
$CONTAINER{_} $ELT{_} $ELT

Descendants
LIST{_}



Public


Features
aget(i: INT): ETP
append(a:ETP)
**** Append element "a", even if a is void
append_all(a:$CONTAINER{ETP})
**** Append a into self
aset(i: INT,v: ETP)
clear
**** Set each array element to void. Set size to zero
copy:SAME
**** A copy of self.
copy_from(src:$ELT{ETP})
**** Copy as many elements from `src' to self as will fit.
create(a: $ELT{ETP}): SAME
**** Convert "a" into a list
create: SAME
create_from(a: ARRAY{ETP}): SAME
**** Create an array which contains the elements of "a"
create_sized(n: INT): SAME
**** Create a list with "n" empty locations
equals(a: $RO_ARR{ETP}):BOOL
has(e: ETP): BOOL
**** True if array contains "e"
has_ind(i: INT): BOOL
has_range(beg,num: INT): BOOL
insert_after(l:INT,v:ETP)
**** Insert v at location i, pushing elements upward
insert_all_after(l: INT, e: $CONTAINER{ETP})
insert_all_before(l: INT, e: $CONTAINER{ETP})
insert_before(l: INT, v: ETP)
remove_index(i: INT)
resize(n: INT)
**** Allocate a new array and copy whatever will fit of the old portion. Changes the actual size
size: INT
str: STR
**** Prints out a string version of the array of the components that are under $STR, and their associated indices

Iters
elt!: ETP
**** Yield each element of self in order. Self may be void.
ind!:INT
**** Yield the indices of self in order. Self may be void.
set!(val:ETP)
**** Set successive elements of self to the values of `val'.


Private

attr arr: FLIST{ETP};
attr arr: FLIST{ETP};
elt_str(e: ETP,i: INT): STR

The Sather Home Page